package com.olddriver.crm.mapper;

import com.olddriver.crm.domain.Mechanism;
import com.olddriver.crm.query.MechanismQueryObject;

import java.util.List;

public interface MechanismMapper {

    int insert(Mechanism record);

    Mechanism selectByPrimaryKey(Long id);

    List<Mechanism> selectAll();

    int updateByPrimaryKey(Mechanism record);

    int queryForTotal(MechanismQueryObject qo);

    List<?> queryForRows(MechanismQueryObject qo);

    void changeState(Long id);

}